import 'package:flutter/material.dart';

main() => runApp(const SingleChildScrollViewWidget());

class SingleChildScrollViewWidget extends StatelessWidget {
  const SingleChildScrollViewWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Test',
        home: Scaffold(
            appBar: AppBar(
                title:
                    const Text('Flutter 可滚动Widget -- SingleChildScrollView')),
            body: SingleChildScrollView(
              scrollDirection: Axis.horizontal,
              child: Row(
                children: <Widget>[Text('Hello Flutter ' * 100)],
              ),
            )));
  }
}
